/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class GasStove {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050002';
    }

    get categoryName() {
        return '\u71c3\u6c14\u7076';
    }

    getBurningTime(params) {
        return command({
            method: 'getBurningTime',
            methodId: 'pGoxpVeb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGear(params) {
        return command({
            method: 'getGear',
            methodId: 'pDrhgG3k',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'pZgRrS7x',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'p1vZQ31q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBurningTime(params) {
        return command({
            method: 'setBurningTime',
            methodId: 'peH3btYV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setGear(params) {
        return command({
            method: 'setGear',
            methodId: 'pUPQLLOG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'ppAX3FN3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default GasStove;
